<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>书籍信息</title>
</head>
<style>
    a {
        text-decoration: none;
    }
</style>
<body>
<a th:href="@{/addbook}">增加书籍</a>
<table border="1">
    <tr>
        <th>书籍id</th>
        <th>书籍名称</th>
        <th>书籍价格</th>
        <th>删除用户</th>
        <th>修改用户</th>
    </tr>
    <tr th:each="book:${list}">
        <td th:text="${book.id}"></td>
        <td th:text="${book.bookname}"></td>
        <td th:text="${book.bookprice}"></td>
        <td>
            <a th:href="@{'/deleteBookById?id='+${book.id}}">删除</a>
        </td>
        <td>
            <a th:href="@{/updateBook(id=${book.id},bookname=${book.bookname},bookprice=${book.bookprice})}">修改</a>
        </td>
    </tr>

</table>

</body>
</html>